extends PopupPanel



var call_back:FuncRef = null


func set_data(data,call_back):
	self.call_back = call_back
	$VBoxContainer/TextEdit.text = str(data)
	call_back = call_back
	pass



func _on_Cancle_pressed():
	if call_back != null:
		call_back.call_func(0,$VBoxContainer/TextEdit.text)
	MainTool.getUILayer().pop_ui()
	pass # Replace with function body.


func _on_OK_pressed():
	if call_back != null:
		call_back.call_func(1,$VBoxContainer/TextEdit.text)
	MainTool.getUILayer().pop_ui()
	pass # Replace with function body.
